package com.chenyue.cm.account.service;

import com.chenyue.cm.account.domain.JdAccount;
import com.chenyue.cm.account.domain.JdAccountRecord;
import com.chenyue.cm.account.vo.SignInfo;
import com.chenyue.cm.base.service.BaseServiceIface;
import com.chenyue.cm.bean.Success;

/**
 * @author chenyue-cm
 * @date JdAccountRecord
 */
public interface JdAccountRecordService extends BaseServiceIface<JdAccountRecord> {

    /**
     * 金币签到
     *
     * @param id     用户id
     * @param amount 账户
     * @return 签到提示
     */
    Success<String> sign(Integer id, JdAccount amount);

    /**
     * 获取签到内容
     *
     * @param id userId
     * @return 签到内容
     */
    SignInfo getSign(Integer id);

    /**
     * 删除账户记录
     *
     * @param id 记录id
     */
    void delete(Integer id);
}